package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.OrderBean;
import com.project.bean.ShopBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface IOrderMapper extends BaseMapper<OrderBean> {

    /**
     * 添加订单明细
     * @param orderId 订单ID
     * @param shopList 购物车集合
     */
    public void addOrderInfo(@Param("orderId") int orderId,
                             @Param("shopList") List<ShopBean> shopList);
}
